package com.huiztech.kaoqinji;

import com.baidu.mapapi.BMapManager;
import android.app.Application;
import android.content.Context;

public class LocApplication extends Application {

    public BMapManager mBMapManager = null;
    public long visitTime;
    public String isStart;
    public int acquisition_interval;
    
    public int getAcquisition_interval() {
        return acquisition_interval;
    }

    public void setAcquisition_interval(int acquisition_interval) {
        this.acquisition_interval = acquisition_interval;
    }

    public void setVistTime(long visitTime) {
        this.visitTime = visitTime;
    }

    public long getVisitTime() {
        return this.visitTime;
    }

    public void setIsStart(String isStart) {
        this.isStart = isStart;
    }

    public String getIsStart() {
        return this.isStart;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        initEngineManager(this);
    }

    public void initEngineManager(Context context) {
        if (mBMapManager == null) {
            mBMapManager = new BMapManager(context);
        }

        mBMapManager.init(AppConst.API_KEY, null);
    }

}
